/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.dao.api;

import java.util.List;
import org.cx1.model.Place;

/**
 *
 * @author tina
 */
public interface IPlaceDao {
    
    
    public List<Place> getAll();
    
    public Place getById(String id);
    
    public String add(Place place);
    
    public int update(Place place);
    
    public int deleteById(String id);
    
    public boolean addPhoto(String placeId, String photoId);   
    
    public int deletePhoto(String placeId, String photoId);
    
    public List<String> getPhotoIds(String placeId);
    
    public List<String> getAllPlaceRefIDs(String placeSrcID, String placeDestTypeID);
    
    public String addPlaceRef(String placeSrcID, String placeDestID, String placeDestTypeID);
    
    public int deleteAllPlaceRef(String placeSrcID);
    
    public int incrementImpressions(String placeId);
        
    public int incrementViews(String placeId);
    
}
